package com.wodsy.phoenix.dataobject.goodsc.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbGoodsReview entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_goods_review", catalog = "goodsc")
public class GoodsReview implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	
	private Integer reviewId;
	private Integer userId;
	private String reviewContent;
	private Integer goodsId;
	private Integer reviewStar;
	private Integer orderId;
	private Timestamp updateTime;
	private Timestamp createTime;
	private Short reviewLevel;

	// Constructors

	/** default constructor */
	public GoodsReview() {
	}

	/** minimal constructor */
	public GoodsReview(Integer userId, Integer goodsId, Integer reviewStar,
			Timestamp createTime, Short reviewLevel) {
		this.userId = userId;
		this.goodsId = goodsId;
		this.reviewStar = reviewStar;
		this.createTime = createTime;
		this.reviewLevel = reviewLevel;
	}

	/** full constructor */
	public GoodsReview(Integer userId, String reviewContent, Integer goodsId,
			Integer reviewStar, Integer orderId, Timestamp updateTime,
			Timestamp createTime, Short reviewLevel) {
		this.userId = userId;
		this.reviewContent = reviewContent;
		this.goodsId = goodsId;
		this.reviewStar = reviewStar;
		this.orderId = orderId;
		this.updateTime = updateTime;
		this.createTime = createTime;
		this.reviewLevel = reviewLevel;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "review_id", unique = true, nullable = false)
	public Integer getReviewId() {
		return this.reviewId;
	}

	public void setReviewId(Integer reviewId) {
		this.reviewId = reviewId;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "review_content")
	public String getReviewContent() {
		return this.reviewContent;
	}

	public void setReviewContent(String reviewContent) {
		this.reviewContent = reviewContent;
	}

	@Column(name = "goods_id", nullable = false)
	public Integer getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "review_star", nullable = false)
	public Integer getReviewStar() {
		return this.reviewStar;
	}

	public void setReviewStar(Integer reviewStar) {
		this.reviewStar = reviewStar;
	}

	@Column(name = "order_id")
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "update_time", length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "create_time", nullable = false, length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "review_level", nullable = false)
	public Short getReviewLevel() {
		return this.reviewLevel;
	}

	public void setReviewLevel(Short reviewLevel) {
		this.reviewLevel = reviewLevel;
	}

}